package com.ccom.base.serviceImpl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ccom.api.domain.SysLoginLog;
import com.ccom.base.mapper.SysLoginLogMapper;
import com.ccom.base.service.SysLoginLogService;
import com.ccom.core.common.model.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zjj
 * @date 2021/9/29 16:34
 * @description
 */
@Slf4j
@Service
public class SysLoginLogServiceImpl extends ServiceImpl<SysLoginLogMapper, SysLoginLog> implements SysLoginLogService {

    @Autowired
    private SysLoginLogMapper sysLoginLogMapper;

    @Override
    public Result<Boolean> saveLoginLog(SysLoginLog sysLoginLog) {
        sysLoginLogMapper.insert(sysLoginLog);
        return Result.date(true);
    }
}
